home *** CD-ROM | disk | FTP | other *** search
- I am writing to the list about the Optimisation Tips written by Ben Wyatt.
-
- This very good file explains different ways to improve speed in your
- AMOS-programs.
-
- However some of the tips really surprised me. Ben states that A=A+1 should be
- faster than both Inc A and Add A,1. He also writes that Repeat ... Inc ...
- Until should be faster than For ... Next. I have been doing some tests on my
- system and it clearly proves that this is WRONG!
-
- I can not believe that Ben Wyatt has not checked his tips, so I must conclude
- that the difference in speed is different on different system (I do not think
- that Ben has a 68060?).
-
- Anyway I am working on a small program that will test the speed of different
- commands, and I am thinking that it should be run on different systems, so we
- could clear out which commands is fastest on which system. The rest of the
- message is an output of my not-yet-finished speed tester.
-
- Do anyone has some comments on this?
-
- --------------------------------------------------------------------------------
-
- AMOS Speed Test v1.0 performed Tue 08-Apr-97
-
- --------------------------------------------------------------------------------
-
- CPU
- 68060
-
- FPU
- Built-in
-
- Fast Free
- 37242408
-
- Chip Free
- 1821344
-
- Program State
- Compiled
-
- --------------------------------------------------------------------------------
-
- Command Origin Repeats
- Blanks
-
- --------------------------------------------------------------------------------
-
- Plot
-
- --------------------------------------------------------------------------------
-
- Plot - 100000
- 123
-
- Ink : Plot - 100000
- 142
-
- F Plot Turbo 100000
- 40
-
- Turbo Plot AMCAF 100000
- 40
-
- --------------------------------------------------------------------------------
-
- Draw
-
- --------------------------------------------------------------------------------
-
- Draw - 2000
- 198
-
- Turbo Draw AMCAF 2000
- 195
-
- --------------------------------------------------------------------------------
-
- Circle
-
- --------------------------------------------------------------------------------
-
- Circle : Paint - 100
- 514
-
- F Circle AMCAF 100
- 10
-
- --------------------------------------------------------------------------------
-
- Point
-
- --------------------------------------------------------------------------------
-
- Point - 100000
- 78
-
- F Point AMCAF 100000
- 39
-
- --------------------------------------------------------------------------------
-
- Increase Variable
-
- --------------------------------------------------------------------------------
-
- Inc X - 500000
- 64
-
- Add X,1 - 500000
- 68
-
- X=X+1 - 500000
- 73
-
- --------------------------------------------------------------------------------
-
- Increase Dimensioned Variable
-
- --------------------------------------------------------------------------------
-
- Inc X() - 500000
- 93
-
- Add X(),1 - 500000
- 99
-
- X()=X()+1 - 500000
- 120
-
- --------------------------------------------------------------------------------
-
- Heavy Increase Variable
-
- --------------------------------------------------------------------------------
-
- Add X,1000 - 500000
- 89
-
- X=X+1000 - 500000
- 93
-
- --------------------------------------------------------------------------------
-
- Heavy Increase Dimensioned Variable
-
- --------------------------------------------------------------------------------
-
- Add X(),1000 - 500000
- 114
-
- X()=X()+1000 - 500000
- 136
-
- --------------------------------------------------------------------------------
-
- Countable Loops
-
- --------------------------------------------------------------------------------
-
- For : Next - 5000000
- 173
-
- Repeat : Inc : Until - 5000000
- 322
-
- While : Inc : Wend - 5000000
- 322
-
- Do : Inc : Exit : Loop - 5000000
- 332
-
- --------------------------------------------------------------------------------
-
- --
- rune j. keller - sporuplundsvej 105 - dk-8472 sporup - keller@vip.cybercity.dk
- -my mommy always said there were no monsters... no real ones... but there are!
-
-
-